package cn.lastcrdg.testitemdecoration;

/**
 * author：liluo
 * e-mail：lastcrazysun@163.com
 * company：cusc
 * date：2018/4/10 16:08
 * description：
 */
public class GroupInfo {

    private String title;

    private int groupId;

    private int position;

    private int itemNum;

    public void setItemNum(int itemNum) {
        this.itemNum = itemNum;
    }

    public boolean isFirstViewInGroup(){
        return position == 0;
    }

    public boolean isLastViewInGroup(){
        return position == itemNum - 1;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }
}
